#include <stdio.h>
int my_strlen1(char* str)
{
	int count = 0;
	while (*str++)
	{
		count++;
	}
	return count;
}
int my_strlen2(char* str)
{
	if (*str == '\0')
	{
		return 0;
	}
	return 1 + my_strlen2(str + 1);
}
int my_strlen3(char* str)
{
	char* tmp = str;
	while (*(++str));
	return str - tmp;
}
int main()
{
	char str[] = "abcdefg";
	printf("%d\n", my_strlen1(str));
	printf("%d\n", my_strlen2(str));
	printf("%d\n", my_strlen3(str));
}